/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package be.ugent.medirem.persistence.entity.details;

import java.util.Collection;
import java.util.List;

/**
 *
 * @author Simon
 */
public class GpDetails {
    
    private Collection<PatientDetails> patients;
    private Long id;
    private String username;
    private String rolename;
    private String firstname;
    private String surname;
    private Long locationId;

    public GpDetails() {}

    public GpDetails(String username, String firstname, String surname) {
        this.username = username;
        this.firstname = firstname;
        this.surname = surname;
    }
    
    public GpDetails(String username, String firstname, String surname, Collection<PatientDetails> patients, Long locationId) {
        this.username = username;
        this.firstname = firstname;
        this.surname = surname;
        this.patients = patients;
        this.locationId = locationId;
    }

    /**
     * @return the id
     */
    public Long getId() {
        return id;
    }

    /**
     * @param id the id to set
     */
    public void setId(Long id) {
        this.id = id;
    }

    public Collection<PatientDetails> getPatients() {
        return patients;
    }

    public void setPatients(List<PatientDetails> patients) {
        this.patients = patients;
    }

    /**
     * @return the username
     */
    public String getUsername() {
        return username;
    }

    /**
     * @param username the username to set
     */
    public void setUsername(String username) {
        this.username = username;
    }

    /**
     * @return the rolename
     */
    public String getRolename() {
        return rolename;
    }

    /**
     * @param rolename the rolename to set
     */
    public void setRolename(String rolename) {
        this.rolename = rolename;
    }

    /**
     * @return the firstname
     */
    public String getFirstname() {
        return firstname;
    }

    /**
     * @param firstname the firstname to set
     */
    public void setFirstname(String firstname) {
        this.firstname = firstname;
    }

    /**
     * @return the surname
     */
    public String getSurname() {
        return surname;
    }

    /**
     * @param surname the surname to set
     */
    public void setSurname(String surname) {
        this.surname = surname;
    }

    /**
     * @return the locationId
     */
    public Long getLocationId() {
        return locationId;
    }

    /**
     * @param locationId the locationId to set
     */
    public void setLocationId(Long locationId) {
        this.locationId = locationId;
    }

    public String getName() {
        return this.firstname + " " + this.surname;
    }

}
